<?php
if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
require_once( "class_3d/CheckMode_3d.php" );
$gametype = intval(getvar("gametype"));
$chk = new CheckMode_3d($curruser['acl'], 1, $gametype);
$chk->checkShow3dPage();
unset($chk);
if ($curruser['acl'] != "255")
{
    exit();
}
$conf = new Config();
$ui = new UI_3D(true);
$tpl = new Template2();
$tbl = $g_gametype_3d[$gametype]['en'];
$tblName = $g_gametype_3d[$gametype]['ch'];
if (ispost())
{
    $conf->set("max_bat_hint_{$tbl}", intval(getvar("maxbet")));
    $conf->set("alert_sound", intval(getvar("stype")));
}
$checkVal = $conf->get("alert_sound");
$tpl->load("main", "alert_3d.htm");
$tpl->set(array("maxbet" => $conf->get("max_bat_hint_{$tbl}"), "check{$checkVal}" => "checked=checked"));
$ui->header();
echo title("{$tblName} 警示设定");
$tpl->show("main");
$ui->footer();
?>